import request from '@/utils/request'

// 查询折扣套票核销人列表
export function listMallVoucerWriter(query) {
  return request({
    url: '/mall/mallVoucerWriter/list',
    method: 'get',
    params: query
  })
}

// 查询折扣套票核销人详细
export function getMallVoucerWriter(id) {
  return request({
    url: '/mall/mallVoucerWriter/' + id,
    method: 'get'
  })
}

// 新增折扣套票核销人
export function addMallVoucerWriter(data) {
  return request({
    url: '/mall/mallVoucerWriter',
    method: 'post',
    data: data
  })
}

// 修改折扣套票核销人
export function updateMallVoucerWriter(data) {
  return request({
    url: '/mall/mallVoucerWriter',
    method: 'put',
    data: data
  })
}

// 删除折扣套票核销人
export function delMallVoucerWriter(id) {
  return request({
    url: '/mall/mallVoucerWriter/' + id,
    method: 'delete'
  })
}
